table of contents
GLUTSTROKEHEIGHT(3) | Library Functions Manual (local) | GLUTSTROKEHEIGHT(3) |
NAME¶
glutStrokeHeight
—
Returns the height of a given font.
LIBRARY¶
OpenGLUT - fonts
SYNOPSIS¶
#include
<openglut.h>
GLfloat
glutStrokeHeight
(void
*fontID);
PARAMETERS¶
fontID
A GLUT stroked font identifier.
DESCRIPTION¶
This function reports the height of a font, given by
fontID,
as a global characteristic of that font.
Returns 0 if
fontID
is invalid.
CAVEATS¶
Does
not
report the height used by individual characters. This may limit its usefulness; perhaps we should change it? (And/or add a new function.)
TODO¶
We have discussed adding a "font descender" query. We should go ahead and do it.
SEE ALSO¶
glutStrokeCharacter(3) glutStrokeString(3) glutStrokeWidth(3) glutStrokeLength(3) glutBitmapHeight(3)